import java.util.Comparator;

public class Main {
    public static void main(String[] args) {
        Integer[] array = Integers.random(1000, 1000, 9999);

        MergeSort<Integer> mergeSort = new MergeSort<>(new Comparator<>() {
            @Override
            public int compare(Integer o1, Integer o2) {
                return o1 - o2;
            }
        });
        mergeSort.sort(array, 0, array.length);

        Asserts.test(Integers.isAscOrder(array));
    }
}
